OPC Studio User's Guide and Reference
SetByteArrayValue(Byte[]) Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.DataTypeModel Namespace > OpaqueData Class > SetByteArrayValue Method : SetByteArrayValue(Byte[]) Method
The value expressed as array of bytes.

The value of this parameter cannot be null (Nothing in Visual Basic).

Sets the current value from a given array of bytes.
Syntax
'Declaration
 
Public Overloads Sub SetByteArrayValue( _
   ByVal byteArray() As Byte _
) 
'Usage
 
Dim instance As OpaqueData
Dim byteArray() As Byte
 
instance.SetByteArrayValue(byteArray)
public void SetByteArrayValue( 
   byte[] byteArray
)
public:
void SetByteArrayValue( 
   array<byte>^ byteArray
) 

Parameters

byteArray
The value expressed as array of bytes.

The value of this parameter cannot be null (Nothing in Visual Basic).

Remarks

The resulting size of the opaque value will be a multiple of 8 bits.

Note that the byte array value is only synchronized with the bit array after the bit array has been set to a different object.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also